from openai import OpenAI
 
client = OpenAI(api_key="your-api-key")
 
def generate_vue_component(prompt):
    response = client.chat.completions.create(
        model="gpt-4",
        messages=[{
            "role": "user",
            "content": f"Convert this AngularJS controller to Vue 3 composition API:\n{prompt}"
        }],
        temperature=0.7
    )
    return response.choices[0].message.content
